package com.project.bean;

import java.time.LocalDate;

public class ProductBean {
    private Integer id;
    private String name;
    private String factory;
    private Integer price;
    private LocalDate createDate;

    public ProductBean(String name, String factory, Integer price, LocalDate createDate) {
        this.name = name;
        this.factory = factory;
        this.price = price;
        this.createDate = createDate;
    }

    public ProductBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFactory() {
        return factory;
    }

    public void setFactory(String factory) {
        this.factory = factory;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public LocalDate getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDate createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", factory='" + factory + '\'' +
                ", price=" + price +
                ", createDate=" + createDate +
                "}\n";
    }
}
